<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/technology/pretest/expanding_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/condition/records_editEntity.shtml">
		<section class="panel panel-default">
		<input type="hidden" class="form-control checkacc" value="${processCond.id }"
							name="processCondFormMap.id">
		<input type="hidden" class="form-control checkacc" value="${processRecords.id }"
							name="processRecordsFormMap.id">
		<table class="layui-table"  style="font-weight: bold; text-align: center;">
				<tr>
					<td colspan="2">中山市泰源包装材料有限公司</td>
					<td colspan="4">作业指导书</td>
					<td>日期</td>
					<td><input class="form-control checkacc" value="<fmt:formatDate value='${processCond.Record_date }' pattern='yyyy-MM-dd HH:mm:ss' />"
						readonly="readonly"></td>
				</tr>
				<tr>
					<td colspan="8"><h1 style="font-weight: bolder;">自动机成型工艺参数</h1></td>
				</tr>
				<tr>
					<td colspan="4">电厂供蒸汽</td>
					<td colspan="4">降温减压后</td>	
				</tr>
				<tr>
					<td>压力</td>
					<td><input class="form-control checkacc" value="${processCond.Power_pressure }"
						name="processCondFormMap.Standard_Capacity"></td>
					<td>温度</td>
					<td><input class="form-control checkacc" value="${processCond.Power_temperature }"
						name="processCondFormMap.Power_temperature"></td>
					<td>压力</td>
					<td><input class="form-control checkacc" value="${processCond.Temperature_pressure }"
						name="processCondFormMap.Temperature_pressure"></td>
					<td>温度</td>
					<td><input class="form-control checkacc" value="${processCond.Temperature }"
						name="processCondFormMap.Temperature"></td>
				</tr>
				<tr>
					<td>流程</td>
					<td><input class="form-control checkacc" value="${processCond.Power_flow }"
						name="processCondFormMap.Power_flow"></td>
					<td colspan="2"></td>
					<td colspan="4"></td>
				</tr>
				<tr>
					<td colspan="4">成型1--1#</td>
					<td colspan="4">成型1--2#</td>		
				</tr>
				<tr>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Omolding}">		
							<input type="hidden" class="form-control checkacc" value="${key.id }"
							name="inspectionItemFormMap.id1">
							<td>蒸汽</td>
							<td><input class="form-control checkacc" value="${key.Steam }"
							name="inspectionItemFormMap.Steam1"></td>
							<td>真空</td>
							<td><input class="form-control checkacc" value="${key.Vacuum}"
							name="inspectionItemFormMap.Vacuum1"></td>
						</c:if>
					</c:forEach>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Tmolding}">
						<input type="hidden" class="form-control checkacc" value="${key.id }"
							name="inspectionItemFormMap.id2">		
							<td>蒸汽</td>
							<td><input class="form-control checkacc" value="${key.Steam }"
							name="inspectionItemFormMap.Steam2"></td>
							<td>真空</td>
							<td><input class="form-control checkacc" value="${key.Vacuum}"
							name="inspectionItemFormMap.Vacuum2"></td>
						</c:if>
					</c:forEach>				
				</tr>
				<tr>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Omolding}">		
							<td>高压</td>
							<td><input class="form-control checkacc" value="${key.HighPressure}"
							name="inspectionItemFormMap.HighPressure1"></td>
							<td>低压</td>
							<td><input class="form-control checkacc" value="${key.LowPressure}"
							name="inspectionItemFormMap.LowPressure1"></td>
						</c:if>
					</c:forEach>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Tmolding}">		
							<td>高压</td>
							<td><input class="form-control checkacc" value="${key.HighPressure}"
							name="inspectionItemFormMap.HighPressure2"></td>
							<td>低压</td>
							<td><input class="form-control checkacc" value="${key.LowPressure}"
							name="inspectionItemFormMap.LowPressure2"></td>
						</c:if>
					</c:forEach>				
				</tr>
				
				<tr>
					<td colspan="4">成型2--1#</td>
					<td colspan="4">成型2--2#</td>	
				</tr>
				<tr>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Smolding}">	
						<input type="hidden" class="form-control checkacc" value="${key.id }"
							name="inspectionItemFormMap.id3">	
							<td>蒸汽</td>
							<td><input class="form-control checkacc" value="${key.Steam }"
							name="inspectionItemFormMap.Steam3"></td>
							<td>真空</td>
							<td><input class="form-control checkacc" value="${key.Vacuum}"
							name="inspectionItemFormMap.Vacuum3"></td>
						</c:if>
					</c:forEach>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Fmolding}">		
							<input type="hidden" class="form-control checkacc" value="${key.id }"
							name="inspectionItemFormMap.id4">
							<td>蒸汽</td>
							<td><input class="form-control checkacc" value="${key.Steam }"
							name="inspectionItemFormMap.Steam4"></td>
							<td>真空</td>
							<td><input class="form-control checkacc" value="${key.Vacuum}"
							name="inspectionItemFormMap.Vacuum4"></td>
						</c:if>
					</c:forEach>				
				</tr>
				<tr>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Smolding}">		
							<td>高压</td>
							<td><input class="form-control checkacc" value="${key.HighPressure}"
							name="inspectionItemFormMap.HighPressure3"></td>
							<td>低压</td>
							<td><input class="form-control checkacc" value="${key.LowPressure}"
							name="inspectionItemFormMap.LowPressure3"></td>
						</c:if>
					</c:forEach>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Fmolding}">		
							<td>高压</td>
							<td><input class="form-control checkacc" value="${key.LowPressure}"
							name="inspectionItemFormMap.LowPressure4"></td>
							<td>低压</td>
							<td><input class="form-control checkacc" value="${key.LowPressure}"
							name="inspectionItemFormMap.LowPressure4"></td>
						</c:if>
					</c:forEach>				
				</tr>
				<tr>
					<td colspan="4">成型3--1#</td>	
					<td colspan="4"></td>	
				</tr>
				<tr>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Fivemolding}">		
							<input type="hidden" class="form-control checkacc" value="${key.id }"
							name="inspectionItemFormMap.id5">
							<td>蒸汽</td>
							<td><input class="form-control checkacc" value="${key.Steam }"
							name="inspectionItemFormMap.Steam5"></td>
							<td>真空</td>
							<td><input class="form-control checkacc" value="${key.Vacuum}"
							name="inspectionItemFormMap.Vacuum5"></td>
						</c:if>
					</c:forEach>
					<td>模具冷却水压</td>
					<td><input class="form-control checkacc" value="${processCond.Mold_coolingwater}"
						name="processCondFormMap.Mold_coolingwater"></td>
					<td>真空冷却水压</td>
					<td><input class="form-control checkacc" value="${processCond.Vacuum_coolingwater}"
						name="processCondFormMap.Vacuum_coolingwater"></td>			
				</tr>
				<tr>
					<c:forEach var="key" items="${inspection}" >
						<c:if test="${key.id == processCond.Fivemolding}">		
							<td>高压</td>
							<td><input class="form-control checkacc" value="${key.HighPressure}"
							name="inspectionItemFormMap.HighPressure5"></td>
							<td>低压</td>
							<td><input class="form-control checkacc" value="${key.LowPressure}"
							name="inspectionItemFormMap.LowPressure5"></td>
						</c:if>
					</c:forEach>
					<td>巡查记录</td>
					<td><input class="form-control checkacc" value="${processCond.Patrol_record}"
						name="processCondFormMap.Patrol_record"></td>
					<td>备注</td>
					<td><input class="form-control checkacc" value="${processCond.remake}"
						name="processCondFormMap.remake"></td>				
				</tr>
				<tr>
					<td colspan="8">车间机台工艺记录</td>
				</tr>
				<tr>
					<td>机台号</td>
					<td><input class="form-control checkacc" value="${processRecords.Machine_ID}"
						name="processRecordsFormMap.Machine_ID"></td>
					<td>模具编号</td>
					<td><input class="form-control checkacc" value="${processRecords.Mold_Number}"
						name="processRecordsFormMap.Mold_Number"></td>
					<td>标准周期</td>
					<td><input class="form-control checkacc" value="${processRecords.Cycle_Standard}"
						name="processRecordsFormMap.Cycle_Standard"></td>
					<td>实际周期</td>
					<td><input class="form-control checkacc" value="${processRecords.Cycle_Actual}"
						name="processRecordsFormMap.Cycle_Actual"></td>
				</tr>
				<tr>
					<td>固模水冷时间</td>
					<td><input class="form-control checkacc" value="${processRecords.OMold_Cooling}"
						name="processRecordsFormMap.OMold_Cooling"></td>
					<td>移模水冷时间</td>
					<td><input class="form-control checkacc" value="${processRecords.OMould_Cooling}"
						name="processRecordsFormMap.OMould_Cooling"></td>
					<td>实际真空时间</td>
					<td><input class="form-control checkacc" value="${processRecords.Actual_Vacuum}"
						name="processRecordsFormMap.Actual_Vacuum"></td>
					<td>实际加热时间</td>
					<td><input class="form-control checkacc" value="${processRecords.Actual_Heating}"
						name="processRecordsFormMap.Actual_Heating"></td>
				</tr>
				<tr>
					<td>原因分析</td>
					<td><input class="form-control checkacc" value="${processRecords.Analysis}"
						name="processRecordsFormMap.Analysis"></td>
					<td>改善结果</td>
					<td><input class="form-control checkacc" value="${processRecords.Improve}"
						name="processRecordsFormMap.Improve"></td>
					<td>日期</td>
					<td><input class="form-control checkacc" value="<fmt:formatDate value='${processRecords.Date}' pattern='yyyy-MM-dd HH:mm:ss' />"
						readonly="readonly" name="processRecordsFormMap.Date"></td>
					<td></td>
					<td></td>
				</tr>				
		</table>
		<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer>
		</section>
		
	</form>
</body>
</html>